<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" 
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"   
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:ui="http://java.sun.com/jsf/facelets"
      xmlns:p="http://primefaces.org/ui"
      >

	<h:head>
		<h:outputStylesheet name="common-style.css" library="css" />
	</h:head>
     
    <h:body>
<p:layout fullPage="true" id="lydMain" >  

	<p:ajaxStatus onstart="statusDialog.show();" onsuccess="statusDialog.hide();"/>                
<p:dialog modal="true"  widgetVar="statusDialog"    
        draggable="false" closable="false">  
    <p:graphicImage value="resources/img/bar_loader.gif" />  
</p:dialog>  
	
	  

    <p:layoutUnit position="north" size="100" >  
       <ui:insert name="header">
				<ui:include src="/pages/template/commonProfesores/commonHeader.xhtml" />
			</ui:insert>  
    </p:layoutUnit>  
  
    <p:layoutUnit position="south" size="100"  >  
     <ui:insert name="footer" >
	    		<ui:include src="/pages/template/commonProfesores/commonFooter.xhtml" />
	    	</ui:insert>  
    </p:layoutUnit>  
  
    <p:layoutUnit position="west" size="225" style="position:fixed" >
    	<ui:include src="/pages/template/commonProfesores/commonLateral.xhtml" />  
    	
        <ui:insert name="lateral" >		   		
		   		
		</ui:insert>  
    </p:layoutUnit>  
      
    <p:layoutUnit position="center">   
    		<ui:include src="/pages/template/commonProfesores/lateralCommon/lateralDialog/dialogMaterias.xhtml" />
        	<ui:include src="/pages/template/commonAlumno/lateralCommon/lateralDialog/dialogSendMail.xhtml" />        	   
    	<h:form id="formTab">			
			<p:tabMenu activeIndex="#{loginProfesoresBeam.activeindex}">  
		    <p:menuitem value="Tareas"   action="#{loginProfesoresBeam.dirige(0)}" />
		    <p:menuitem value="Asistencias"    action="#{loginProfesoresBeam.dirige(1)}" /> 
		    <p:menuitem value="Mensajes"   action="#{loginProfesoresBeam.dirige(2)}"/> 
		    <p:menuitem value="Calificaciones"    action="#{loginProfesoresBeam.dirige(3)}"/>
		  </p:tabMenu> 
    	</h:form>
    	
    	    	
        <ui:insert name="content" >
		   		<ui:include src="/pages/template/commonProfesores/commonContent.xhtml" />
		</ui:insert>  
        </p:layoutUnit>
        </p:layout>
	</h:body>
</html>